package ModelLayer;



import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * The test class UnitTesting.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class UnitTesting
{
    private ModelLayer.AddressBook addressB1;
    private ModelLayer.Person person1;
    private ModelLayer.Person person2;
    private ModelLayer.DVD dVD1;
    private ModelLayer.DVD dVD2;
    private ModelLayer.DVDContainer dVDConta1;
    private ModelLayer.Copy copy1;
    private ModelLayer.Loan loan1;
    private ModelLayer.LoanContainer loanCont1;

    /**
     * Default constructor for test class UnitTesting
     */
    public UnitTesting()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    @Before
    public void setUp()
    {
        addressB1 = new ModelLayer.AddressBook();
        person1 = new ModelLayer.Person(1, "Jens", "abevej 64", "9000", "Aalborg", "14141414");
        person2 = new ModelLayer.Person(2, "Lars", "Abevej 52", "9000", "Aalborg", "65224278");
        addressB1.addPerson(person1);
        addressB1.addPerson(person2);
        dVD1 = new ModelLayer.DVD(1, "Return of the boman", "Bo Spielberg", "2012");
        dVD2 = new ModelLayer.DVD(2, "Bo Fiction", "Quintin taranboman", "1993");
        dVDConta1 = new ModelLayer.DVDContainer();
        dVDConta1.addDVD(dVD1);
        dVDConta1.addDVD(dVD2);
        copy1 = new ModelLayer.Copy(1, 1, "10-07", "12");
        dVDConta1.addCopy(copy1);
        loan1 = new ModelLayer.Loan(1, "Et eller ander", "mere", "endnu mere", copy1, person1);
        loanCont1 = new ModelLayer.LoanContainer();
        loanCont1.addLoan(loan1);
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    @After
    public void tearDown()
    {
    }
}
